﻿namespace LokiProvider;

public class LokiLoggerOptions
{
    /// <summary>
    /// App 名称, 用于日志分类
    /// </summary>
    public string App { get; set; } = AppDomain.CurrentDomain.FriendlyName;
    /// <summary>
    /// loki 的 grpc 地址
    /// </summary>
    public string Address { get; set; } = "http://localhost:9095";
    /// <summary>
    /// 是否异步推送到 loki 服务器, 异步模式时, 如果进程异常退出, 可能会丢失未来得及推送的日志
    /// </summary>
    public bool Async { get; set; }
}